import request from '@/utils/request'
export default{
    //查询标的的还款计划
    listLendReturns(id){
        return request({
            url:`/admin/core/lendReturn/list/${id}`,
            method:'GET'
        })
    },
    //查询标的的投资记录
    listLendItems(id){
        return request({
            url:`/admin/core/lendItem/list/${id}`,
            method:'GET'
        })
    },
    //放款
    makeLoan(id){
        return request({
            url:`/admin/core/lend/makeLoan/${id}`,
            method:'PUT'
        })
    },
    list(){
        return request({
            url:'/admin/core/lend',
            method:'GET'
        })
    },
    getById(id){
        return request({
            url:'/admin/core/lend/'+id,
            method:'GET'
        })
    }
}